package com.example.mvvm_base.userbean;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "users_money")
public class Money {
    @PrimaryKey(autoGenerate = true)
    public long id;
    public String username;
    public float money;

    public Money(long id, String username, float money) {
        this.id = id;
        this.username = username;
        this.money = money;
    }

    @Override
    public String toString() {
        return "Money{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", money=" + money +
                '}';
    }
}
